package com.example.campus_activity_backend.service;

import com.example.campus_activity_backend.domain.Activity;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author Hongxia
* @description 针对表【t_manager_activity】的数据库操作Service
* @createDate 2023-11-17 14:27:21
*/
public interface ActivityService extends IService<Activity> {
    /**
     * 创建活动
     * @param activity
     * @return id
     */
    public long addActivity(Activity activity);

    /**
     * 发布活动
     * @param activityId
     * @return
     */
    public boolean postActivity(int activityId);

    /**
     * 根据活动状态、活动名称模糊查询活动
     * @param activityName
     * @param status
     * @return
     */
    public List<Activity> getActivityByName(String activityName, Integer status);
}
